package model.entity.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity
 * @date 2025/5/17
 * @description 天气实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class Weather {
    @Schema(description = "天气记录ID")
    private Integer id;

    @Schema(description = "城市ID，关联城市表")
    private Integer cityId;

    @Schema(description = "天气日期")
    private Date date;

    @Schema(description = "最高温度")
    private Float maxTemperature;

    @Schema(description = "最低温度")
    private Float minTemperature;

    @Schema(description = "天气状况")
    private String weatherCondition;

    @Schema(description = "风向")
    private String windDirection;

    @Schema(description = "风力")
    private String windForce;

    @Schema(description = "湿度")
    private Integer humidity;

    @Schema(description = "降水量")
    private Float precipitation;

    @Schema(description = "记录创建时间")
    private Date createTime;

    @Schema(description = "记录更新时间")
    private Date updateTime;
}